
import 'package:flutter_deer/generated/json/base/json_field.dart';
import 'package:flutter_deer/generated/json/flowing_water_entity.g.dart';

@JsonSerializable()
class FlowingWaterEntity {

  FlowingWaterEntity();

  factory FlowingWaterEntity.fromJson(Map<String, dynamic> json) => $FlowingWaterEntityFromJson(json);

  Map<String, dynamic> toJson() => $FlowingWaterEntityToJson(this);

  @JSONField(name: 'date')
  String? date;
  @JSONField(name: 'month')
  String? month;
  @JSONField(name: 'list')
  List<FlowingWaterItemEntity>? list;
}

@JsonSerializable()
class FlowingWaterItemEntity {

  FlowingWaterItemEntity();

  factory FlowingWaterItemEntity.fromJson(Map<String, dynamic> json) => $FlowingWaterItemEntityFromJson(json);

  Map<String, dynamic> toJson() => $FlowingWaterItemEntityToJson(this);

  @JSONField(name: 'id')
  String? id;
  @JSONField(name: 'userId')
  int? userId;
  @JSONField(name: 'score')
  double? score;
  @JSONField(name: 'beforeScore')
  double? beforeScore;
  @JSONField(name: 'afterScore')
  double? afterScore;
  @JSONField(name: 'type')
  String? type;
  @JSONField(name: 'remark')
  String? remark;
  @JSONField(name: 'createTime')
  String? createTime;
  @JSONField(name: 'time')
  String? time;
  @JSONField(name: 'waterContentType')
  String? waterContentType;
}